package com.itheima.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @Program: health_parent
 * @Description:
 * @Author: choulan
 * @Date:2020-11-29 15:40
 **/
public class Log {
    private int id;
    private String username;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date time;
    private String operation;

    public Log() {
    }

    public Log(int id, String username, Date time, String operation) {
        this.id = id;
        this.username = username;
        this.time = time;
        this.operation = operation;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    @Override
    public String toString() {
        return "Log{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", time=" + time +
                ", operation='" + operation + '\'' +
                '}';
    }
}
